package com.zjitc.model;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/24 15:42
 * @description:
 */
public class OrderItem {

  private Integer itemid;       //订单子项目的id
  private Integer count;        //订单子项的商品数量
  private Double subtotal;      //订单子项的总价格
  private Integer osatate;      //订单子项的状态（是否可以评价）
  private Integer pid;          //订单子项里面是哪个商品
  private String oid;           //订单子项属于哪个订单

  private Product product;

  public OrderItem() {
  }

  public OrderItem(Integer itemid, Integer count, Double subtotal, Integer osatate,
      Integer pid, String oid, Product product) {
    this.itemid = itemid;
    this.count = count;
    this.subtotal = subtotal;
    this.osatate = osatate;
    this.pid = pid;
    this.oid = oid;
    this.product = product;
  }

  public Integer getItemid() {
    return itemid;
  }

  public void setItemid(Integer itemid) {
    this.itemid = itemid;
  }

  public Integer getCount() {
    return count;
  }

  public void setCount(Integer count) {
    this.count = count;
  }

  public Double getSubtotal() {
    return subtotal;
  }

  public void setSubtotal(Double subtotal) {
    this.subtotal = subtotal;
  }

  public Integer getOsatate() {
    return osatate;
  }

  public void setOsatate(Integer osatate) {
    this.osatate = osatate;
  }

  public Integer getPid() {
    return pid;
  }

  public void setPid(Integer pid) {
    this.pid = pid;
  }

  public String getOid() {
    return oid;
  }

  public void setOid(String oid) {
    this.oid = oid;
  }

  public Product getProduct() {
    return product;
  }

  public void setProduct(Product product) {
    this.product = product;
  }

  @Override
  public String toString() {
    return "OrderItem{" +
        "itemid=" + itemid +
        ", count=" + count +
        ", subtotal=" + subtotal +
        ", osatate=" + osatate +
        ", pid=" + pid +
        ", oid='" + oid + '\'' +
        ", product=" + product +
        '}';
  }
}
